﻿<%@ Page Language="C#" MasterPageFile="~/WorkFlow/WFConfigure/MpWorkflow.master" AutoEventWireup="true" Inherits="WorkFlow_WFConfigure_WFHolidaysList" Title="Untitled Page" Codebehind="WFHolidaysList.aspx.cs" %>


<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div style="width:98%; padding-top:3px; text-align:center;margin:2px"> 
<table width="100%"  border="0" cellspacing="0" cellpadding="5" >
  <tr>
    <td><div align="right" > 
    <input type="button" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:mOpenDlg("<%=WorkflowApply.Home%>WorkFlow/WFConfigure/WFHolidaysEdit.aspx",600,350,"<%=WorkflowApply.Home%>","新增假日")' name="AddWFHolidays" value="新增" />
      <asp:Button ID="btnDel"  class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" Text="删除" OnClick="btnDel_Click" OnClientClick="return mCanDelete('chkID','请选择要删除的记录！');"  runat="server" />  
      
    </div></td>
  </tr>
</table>
<table width="100%"  border="1" cellspacing="0" cellpadding="1" id="tGrid" class="t1">
  <thead>
    <th style="width:30px" align="center" >
        <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:mCheckAll(this,"chkID")' />
    </th>
	<th  align="center" style="width:200px" >名称</th>	
	<th  align="center" style="width:120px" >开始日期</th>	
	<th  align="center" style="width:120px" >结束日期</th>	
	<th align="center">说明</th>	
	<th style="width:120px" align="center">操作</th>
  </thead>
  <asp:Repeater ID="repWF_Holidays" runat="server" >
  <ItemTemplate>
  <tr>
<td align="center" >
        <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
    </td>
	<td align="left"><%# DataBinder.Eval(Container.DataItem, "Name")%></td>	
	<td align="center"><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "StartDate"))%></td>	
	<td align="center"><%# string.Format("{0:yyyy-MM-dd}", DataBinder.Eval(Container.DataItem, "EndDate"))%></td>	
	<td align="left"><%# DataBinder.Eval(Container.DataItem, "Description")%></td>	
<td align="center">
	<%# WorkflowApply.WFScript.GetDataItemEditButton(WorkflowApply.Home + "WorkFlow/WFConfigure/WFHolidaysEdit.aspx?ID=" + DataBinder.Eval(Container.DataItem, "ID") + "", "编辑", 600, 350, "编辑假日")%>
    <%# WorkflowApply.WFScript.GetDataItemDeleteButton( DataBinder.Eval(Container.DataItem, "ID") + "", btnDel)%>
</td>
  </tr>  
  </ItemTemplate>
  </asp:Repeater>
  <tr>
      <td colspan="6" align="left">
<frameworkwebcontrols:aspnetpager id="AspNetPager1" runat="server"
                    alwaysshow="true" firstpagetext="首页" lastpagetext="尾页" nextpagetext="下一页" pageindexboxtype="DropDownList"
                    prevpagetext="上一页" showpageindex="true" showcustominfosection="Right" submitbuttontext="Go"
                    textafterpageindexbox="页" textbeforepageindexbox="转到" currentpagebuttonposition="End"
                    layouttype="Div" custominfotextalign="Right" custominfohtml="共%RecordCount%条记录。第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
                    direction="LeftToRight" onpagechanged="AspNetPager1_PageChanged">
                </frameworkwebcontrols:aspnetpager>
  </td>
  </tr>
</table>
</div>
</asp:Content>
